import amesu from "../model/bot/amesu";
import { round_log } from "../shared/interface";
import { MsgAction } from "../shared/master/MsgAction";
// 楚轩>☠️测试木桩
// 测试宠物>☠️测试怪物
// ☠️测试怪物>测试宠物
// 🎁EXP+2🎁传送卷轴x2
export default function(data:MsgAction){
    let d = data.data as round_log;
    // amesu.sendText(data.tolocation,str || '错误的内容');
    let tpl = ``;
    d.logs.forEach((item,index)=>{
        tpl += `[${item.a_name}]击杀了[${item.b_name}]\n`
    });
    d.items.forEach((item,index)=>{
        tpl += `${item.name}+${item.cont}`
    });
    amesu.sendText(data.tolocation,tpl);
}